SERVER_ID = 1

is_debug = False  # TODO : 发布时候需要更换为 False
SERVER_TYPE = 'std'  # TODO : 发布时候需要更换为 std

if is_debug:
    print('【<=开发模式=>】')
    AUTH_VALIDATE_URI = 'http://tapi.goolya.cn/authapi/'
    MYSQL_DB_CONN_STR = 'mysql+pymysql://dns-dev:##dv_$$&123??@dev.cedwy3bhqgon.rds.cn-north-1.amazonaws.com.cn:19890/db_cat?charset=utf8'
    REDIS_HOST = r'54.222.150.1'
    REDIS_PORT = 12000
    REDIS_PWD = '877|7O798ADFSDAdnsredis|$$|^##&ODF$$^%%2??adfsauodasf'

if not is_debug and SERVER_TYPE == 'std':
    print('【<=生产模式=>】')
    AUTH_VALIDATE_URI = 'https://appserver.goolya.cn/authapi/'
    MYSQL_DB_CONN_STR = 'mysql+pymysql://mxcat:sddla668*^88*&&~@mysql2c4g.cedwy3bhqgon.rds.cn-north-1.amazonaws.com.cn:3306/db_cat?charset=utf8'
    REDIS_HOST = r'127.0.0.1'
    REDIS_PORT = 6379
    REDIS_PWD = r'ADFSDAdnsredis|$$|^##&ODF$$^%%2??adfsau'

MONITOR_DB_ACCESS_TIME = True

MIN_TEST_ITEM_NUM = 25
MAX_TEST_ITEM_NUM = 40
